package com.xuanwoa.rabbit.domain;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.io.Serializable;

/**
 * Description RABBIT设置参数BO
 *
 * @author: caomin
 * @since: 2020/11/19
 */
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class RabbitSetupBO implements Serializable {


    private static final long serialVersionUID = 63077567855650081L;

    /**
     * 队列任务名称
     */
    String name;

    /**
     * 队列任务id
     */
    String id;

    /**
     * 每次获取条数
     */
    Integer prefetchCount;

    /**
     * 并发数
     */
    Integer consumer;

    /**
     * 最大并发数
     */
    Integer maxConsumer;

    /**
     * 是否启用
     */
    Boolean active;
}
